/**
 * 
 * @author  phoenics@126.com
 * @version v.0.1
 * @date  2018年3月14日 下午2:26:40 
 * 
 */
package phoenics.upservice.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 */
@Entity  
@Table(name = "user_token")  
public class UserToken {
	private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(UserToken.class);
    @Id  
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long id;  
	private String mobile;
    private String token;  
  
	@Column(name="create_time", insertable = false, updatable = false)
	private Date createTime;
  
    public UserToken(){ 
    	
    }
    
    public UserToken(String token){  
        this.setToken(token);  
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Date getCreatetime() {
		return createTime;
	}

	public void setCreatetime(Date createtime) {
		this.createTime = createtime;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}  
}
